/*
 * @Author: hua
 * @Date: 2020-03-08 16:45:18
 * @description: 仓库
 * @LastEditors: hua
 * @LastEditTime: 2020-04-07 16:38:50
 */

let messageNum = 1;

export default function message(state = messageNum, { type, payload }) {
   switch (type) {
      case "message/SET_MESSAGE":
         messageNum = payload;
         return messageNum;
         break;
      default: return 1;
   }
}